package com.huarui.task.model;

import java.util.Date;

import org.ewaf.framework.model.BaseDataObject;

/**
 * 任务
 * @author ycf
 *
 */
public class Task extends BaseDataObject {
	
	private static final long serialVersionUID = -1238955604786817208L;
	
	/**
	 * 在线采购订单流程ID
	 */
//	public static final Integer WORKFLOWID_ONLINE_PURCHASEORDER = 1;
//	
//	/**
//	 * 在线销售订单流程ID
//	 */
//	public static final Integer WORKFLOWID_ONLINE_SALEORDER = 3;
//	
//	/**
//	 * 非在线采购订单流程ID
//	 */
//	public static final Integer WORKFLOWID_NOT_ONLINE_PURCHASEORDER = 2;
//	
//	/**
//	 * 非在线销售订单流程ID
//	 */
//	public static final Integer WORKFLOWID_NOT_ONLINE_SALEORDER = 4;
//
//	/**
//	 * 在线采购订单
//	 */
//	public static final String TASKNAME_ONLINE_PURCHASE_ORDER = "在线采购订单";
//	
//	/**
//	 * 在线销售订单
//	 */
//	public static final String TASKNAME_ONLINE_SALE_ORDER = "在线销售订单";
//	
//	/**
//	 * 非在线采购订单
//	 */
//	public static final String TASKNAME_NOT_ONLINE_PURCHASE_ORDER = "非在线采购订单";
//	
//	/**
//	 * 非在线销售订单
//	 */
//	public static final String TASKNAME_NOT_ONLINE_SALE_ORDER = "非在线销售订单";
	
	public final static Integer REVOKED_ENABLE = Integer.valueOf(0);
	
	public final static Integer REVOKED_DISENABLE = Integer.valueOf(1);
	
	
	public Task() {}
	
	

	public Task(Integer partentId, Integer subTaskNum, Integer workFlowId,
			String tableName, Integer tableId, Date gmtStart, Date gmtModify,
			Date gmtEnd, Integer createCompanyId, String createCompanyName,
			Integer creatorId, String creatorName, Integer statusId,
			Integer status, String statusName, Boolean finished,
			Boolean revoked, Integer currentCompanyId,
			String currentCompanyName, Integer currentorId,
			String currentorName, Integer preActionCompanyId,
			String preActionCompanyName, Integer preActorId,
			String preActorName, Integer preStatusId, Integer preStatus,
			String preStatusName) {
		super();
		this.partentId = partentId;
		this.subTaskNum = subTaskNum;
		this.workFlowId = workFlowId;
		this.tableName = tableName;
		this.tableId = tableId;
		this.gmtStart = gmtStart;
		this.gmtModify = gmtModify;
		this.gmtEnd = gmtEnd;
		this.createCompanyId = createCompanyId;
		this.createCompanyName = createCompanyName;
		this.creatorId = creatorId;
		this.creatorName = creatorName;
		this.statusId = statusId;
		this.status = status;
		this.statusName = statusName;
		this.finished = finished;
		this.revoked = revoked;
		this.currentCompanyId = currentCompanyId;
		this.currentCompanyName = currentCompanyName;
		this.currentorId = currentorId;
		this.currentorName = currentorName;
		this.preActionCompanyId = preActionCompanyId;
		this.preActionCompanyName = preActionCompanyName;
		this.preActorId = preActorId;
		this.preActorName = preActorName;
		this.preStatusId = preStatusId;
		this.preStatus = preStatus;
		this.preStatusName = preStatusName;
	}



	/**
	 * 主键 (任务ID)
	 */
	private Integer id;
	/**
	 * 父任务ID
	 */
	private Integer partentId;
	/**
	 * 子流程数�?
	 */
	private Integer subTaskNum;
	/**
	 * 流程ID
	 */
	private Integer workFlowId;
	/**
	 * 单据数据库表名称
	 */
	private String tableName;
	/**
	 * 单据的ID
	 */
	private Integer tableId;
	/**
	 * 开始
	 */
	private Date gmtStart;
	/**
	 * 流程最后修改
	 */
	private Date gmtModify;
	/**
	 * 结束时间
	 */
	private Date gmtEnd;
	/**
	 * 创建公司ID
	 */
	private Integer createCompanyId;
	/**
	 * 创建公司名称
	 */
	private String createCompanyName;
	/**
	 * 创建人ID
	 */
	private Integer creatorId;
	/**
	 * 创建人
	 */
	private String creatorName;
	/**
	 * 状态ID
	 */
	private Integer statusId;
	/**
	 * 状态
	 */
	private Integer status;
	/**
	 * 状态名
	 */
	private String statusName;
	/**
	 * 结束标志
	 */
	private Boolean finished;
		
	/**
	 * 作废标志
	 */
	private Boolean revoked;
		
	/**
	 * 当前公司ID
	 */
	private Integer currentCompanyId;
	/**
	 * 当前公司名称
	 */
	private String currentCompanyName;
	/**
	 * 当前处理人ID
	 */
	private Integer currentorId;
	/**
	 * 当前处理人
	 */
	private String currentorName;
	

	private Integer  preActionCompanyId;
	
	private String preActionCompanyName;
		
	private Integer preActorId;
		
	private String preActorName;
	
	private Integer preStatusId;
	
	private Integer preStatus;
		
	private String preStatusName;
			

	@Override
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getPartentId() {
		return partentId;
	}
	public void setPartentId(Integer partentId) {
		this.partentId = partentId;
	}
	public Integer getSubTaskNum() {
		return subTaskNum;
	}
	public void setSubTaskNum(Integer subTaskNum) {
		this.subTaskNum = subTaskNum;
	}
	public Integer getWorkFlowId() {
		return workFlowId;
	}
	public void setWorkFlowId(Integer workFlowId) {
		this.workFlowId = workFlowId;
	}
	public String getTableName() {
		return tableName;
	}
	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public Date getGmtStart() {
		return gmtStart;
	}
	public Integer getTableId() {
		return tableId;
	}
	public void setTableId(Integer tableId) {
		this.tableId = tableId;
	}
	public void setGmtStart(Date gmtStart) {
		this.gmtStart = gmtStart;
	}
	public Date getGmtModify() {
		return gmtModify;
	}
	public void setGmtModify(Date gmtModify) {
		this.gmtModify = gmtModify;
	}
	public Date getGmtEnd() {
		return gmtEnd;
	}
	public void setGmtEnd(Date gmtEnd) {
		this.gmtEnd = gmtEnd;
	}
	public Integer getCreateCompanyId() {
		return createCompanyId;
	}
	public void setCreateCompanyId(Integer createCompanyId) {
		this.createCompanyId = createCompanyId;
	}

	public String getCreateCompanyName() {
		return createCompanyName;
	}
	public void setCreateCompanyName(String createCompanyName) {
		this.createCompanyName = createCompanyName;
	}
	public Integer getCreatorId() {
		return creatorId;
	}
	public void setCreatorId(Integer creatorId) {
		this.creatorId = creatorId;
	}
	public String getCreatorName() {
		return creatorName;
	}
	public void setCreatorName(String creatorName) {
		this.creatorName = creatorName;
	}
	public Integer getStatusId() {
		return statusId;
	}
	public void setStatusId(Integer statusId) {
		this.statusId = statusId;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getStatusName() {
		return statusName;
	}
	public void setStatusName(String statusName) {
		this.statusName = statusName;
	}
	public Boolean getFinished() {
		return finished;
	}
	public void setFinished(Boolean finished) {
		this.finished = finished;
	}
	public Boolean getRevoked() {
		return revoked;
	}
	public void setRevoked(Boolean revoked) {
		this.revoked = revoked;
	}
	public Integer getCurrentCompanyId() {
		return currentCompanyId;
	}
	public void setCurrentCompanyId(Integer currentCompanyId) {
		this.currentCompanyId = currentCompanyId;
	}
	public String getCurrentCompanyName() {
		return currentCompanyName;
	}
	public void setCurrentCompanyName(String currentCompanyName) {
		this.currentCompanyName = currentCompanyName;
	}
	public Integer getCurrentorId() {
		return currentorId;
	}
	public void setCurrentorId(Integer currentorId) {
		this.currentorId = currentorId;
	}
	public String getCurrentorName() {
		return currentorName;
	}
	public void setCurrentorName(String currentorName) {
		this.currentorName = currentorName;
	}
	
	public String getPreActionCompanyName() {
		return preActionCompanyName;
	}
	public void setPreActionCompanyName(String preActionCompanyName) {
		this.preActionCompanyName = preActionCompanyName;
	}

	public String getPreActorName() {
		return preActorName;
	}
	public void setPreActorName(String preActorName) {
		this.preActorName = preActorName;
	}
	
	public String getPreStatusName() {
		return preStatusName;
	}
	public void setPreStatusName(String preStatusName) {
		this.preStatusName = preStatusName;
	}
	public Integer getPreActionCompanyId() {
		return preActionCompanyId;
	}
	public void setPreActionCompanyId(Integer preActionCompanyId) {
		this.preActionCompanyId = preActionCompanyId;
	}
	public Integer getPreActorId() {
		return preActorId;
	}
	public void setPreActorId(Integer preActorId) {
		this.preActorId = preActorId;
	}
	public Integer getPreStatusId() {
		return preStatusId;
	}
	public void setPreStatusId(Integer preStatusId) {
		this.preStatusId = preStatusId;
	}
	public Integer getPreStatus() {
		return preStatus;
	}
	public void setPreStatus(Integer preStatus) {
		this.preStatus = preStatus;
	}
	
}
